import { HYEventStore } from "hy-event-store";
import { getTopMusic } from "../service/api_music"

const hotTopStore = new HYEventStore({
  state: {
    hotTop: {}
  },
  actions: {
    getHotTopAction(ctx) {
      getTopMusic(3778678).then(res => {
        ctx.hotTop = res
      })
    }
  }
})

export {
  hotTopStore
}